import request from "../../../../assets/js/request";

/**
 * 获取所有未处理的意见
 * @returns {Promise<AxiosResponse<any>> | *}
 */
export function getOpinionData() {
  return request({
    url: '/opinion/getOpinionData',
    method: 'get',
    headers: {
      "Content-Type": "application/json"
    }
  })
}

/**
 * 提交处理的数据
 * @param data
 * @returns {Promise<AxiosResponse<any>> | *}
 */
export function submitHandle(data) {
  return request({
    url: '/opinion/submitData',
    method: 'post',
    data: data,
    headers:{
      "Content-Type": "application/json"
    }
  })
}
